<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <title></title>
    <meta charset="UTF-8">
    <link rel="stylesheet" type="text/css" href="/assets/Css/bootstrap.css" />
    <link rel="stylesheet" type="text/css" href="/assets/Css/bootstrap-responsive.css" />
    <link rel="stylesheet" type="text/css" href="/assets/Css/style.css" />
    <script type="text/javascript" src="/assets/Js/jquery-2.1.4.min.js"></script>
    <script type="text/javascript" src="/assets/Js/bootstrap.js"></script>
    <script type="text/javascript" src="/assets/Js/ckform.js"></script>
    <script type="text/javascript" src="/assets/Js/common.js"></script>
    
</head>
<script type="text/javascript">
	$(document).ready(function(){
		
		$("#addBtn").click(function(){
			var url = "/manager/coclass/save";
			var acount = $("#acount").val();
			if(acount == ""){
				alert("类型名称不能为空！");
			}else{
				$.post(
						url,
						{coclassName:acount},
						function(data){
								alert("添加成功");
								window.location.href = "/manager/coclass/index";
						}
					);
					
			}
		
			
		});
		
	});


</script>
<body>

<table class="table table-bordered table-hover m10">
  
    <tr>
        <td class="tableleft">类型名称</td>
        <td><input type="text" name="acount" id="acount" required="required" /></td>
    </tr>
    <tr>
        <td class="tableleft"></td>
        <td>
            <button type="button" class="btn btn-primary" type="button" id="addBtn">添加</button> &nbsp;&nbsp;
        </td>
    </tr>
</table>

</body>
</html>